package com.jmz.apt.api.dao;

import com.jmz.apt.api.Provider.AdminRoleResProvider;
import com.jmz.apt.api.entity.dbEntity.JmzAdminRoleResource;
import com.jmz.apt.api.entity.dbEntity.JmzAdminUser;
import com.jmz.apt.api.message.request.RequestMessage;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * Created by fanglexue on 2019/10/30.
 */
public interface AdminUserResDao {

    @SelectProvider(type = AdminRoleResProvider.class, method="select")
    public List<JmzAdminRoleResource> findAdminRoleResource(RequestMessage requestMessage);

    /**
    @SelectProvider(type = AdminRoleResProvider.class, method="getCount")
    public Integer count(RequestMessage requestMessage);

    @UpdateProvider(type = AdminRoleResProvider.class, method="update")
    public JmzAdminUser updateAdmin(RequestMessage requestMessage);

    @UpdateProvider(type = AdminRoleResProvider.class, method="insert")
    public JmzAdminUser saveAdmin(RequestMessage requestMessage);

    @UpdateProvider(type = AdminRoleResProvider.class, method="delete")
    public JmzAdminUser delAdmin(RequestMessage requestMessage);
    **/

}
